const { aiPlan } = require('./aiplan.js')

const routerArr = [aiPlan]

const useRouters = (app) => {
  routerArr.forEach(item => {
    app.use(
      item.routes(), // 触发路由中的回调
      item.allowedMethods() // 允许的请求方式
    )
  })
}

module.exports = useRouters